<!DOCTYPE html>
<html>
	<head>
		<title>个人中心</title>
		<meta name="keywords" content="" />
		<meta name="description" content="">
		<include file="public@head" />
		<style>
			.control-label {
				font-weight: bold;
				float: left;
				width: 70px;
			}
		</style>
	</head>
	<body class="body-white" id="top">
		<div class="container">
			<div class="row">
				<div class="tabs">
					<div class="tab-content">
						<div class="tab-pane active" id="one">
							<div class="wrap js-check-wrap" style="margin-top:3rem;">
							<form class="well form-inline margin-top-20" method="post" action="{:url('Single/index')}">
									商品名:
         <input type="text" class="form-control" name="g_goodsname" style="width: 120px;" value="{:input('request.g_goodsname/s','')}" placeholder="请输入商品名">
									 数量排行：
							        <select class="form-control" name="norder" style="width:140px;">
							        	<option >请选择</option>
							            <option value='1'>低到高</option>            
							            <option value='2'>高到低</option>
							        </select> &nbsp;&nbsp;
							        金额排行：
							        <select class="form-control" name="morder" style="width: 140px;">
							        	<option >请选择</option>
							            <option value='1'>低到高</option>            
							            <option value='2'>高到低</option>
							        </select> &nbsp;&nbsp; 
									时间:
									<input type="text" class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" style="width: 140px;" autocomplete="off">-
									<input type="text" class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
									<input type="submit" class="btn btn-success" value="搜索" />
									<a class="btn btn-warning" href="{:url('Single/index')}">清空</a>
								</form>	
                                <table class="table table-hover table-bordered table-striped">
                                    <thead>
                                        <tr>
                                            <th align="left">商品销售总数:{$dataa['dingdanshu']}个</th>
                                        </tr>
                                    </thead>
                                </table>
                                <div style="height:350px;overflow-y:auto;">
								<table class="table table-hover table-bordered table-striped">
									<thead>
										<tr >
											<th width="40">ID</th>
											<th align="left">店铺</th>
											<th align="left">商品</th>
											<th align="left">数量</th>
											<th align="left">总额</th>
											<th align="left">类型</th>					
											<th align="left">生成时间</th>
										</tr>
									</thead>
									<tbody>
										<foreach name="list" item="vo" key='k'>
											<tr style="text-align: center;">
												<td align="left"><php>
												if(isset($_GET['page'])){
													echo $k+1+8*($_GET['page']-1);
												}else{
													echo $k+1;
												}
												</php></td><!-- 编号 -->
												<td >{$vo.store_name}</td>
												<td>{$vo.g_goodsname}</td><!-- 店铺 -->
												<td>{$vo.num}</td>
												<td>{$vo.money}</td>
												<td><if condition="$vo.stemeal == 0">单品<elseif condition="$vo.stemeal == 1"/>套餐</if></td>
												<td>{$vo.ctime|time_format}</td>					
											</tr>
										</foreach>
									</tbody>
								</table>
								</div>
								<div class="pagination">{$page}</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- /container -->
		<include file="public@scripts" />
	</body>
</html>